package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.Advertising;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdvertisingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Advertising record);

    int insertSelective(Advertising record);

    Advertising selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Advertising record);

    int updateByPrimaryKey(Advertising record);

    List<Advertising> list(@Param("start") Integer start, @Param("end") Integer size, @Param("type") String type);

    Integer amount(@Param("type") String type);
}